namespace Vanilla.UI

class ButtonBar (Row):
	class Button (Vanilla.UI.Button):
		IsLeft as bool:
			get:
				return true if Parent == null
				return Order == 0
		
		IsRight as bool:
			get:
				return true if Parent == null
				return Order == Parent.Children.Length-1
	
		def constructor (p as ButtonBar, t as string, c as callable):
			super(p,t,c)

	def constructor (p as Box):
		super(p)
	
	def AddItem (t as string, c as callable):
		return Button(self, t, c)
